package br.com.travesso.security.authorization;

import java.security.Principal;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Properties;

import br.gov.component.demoiselle.security.auth.Role;
import br.gov.component.demoiselle.security.auth.provider.IAuthorizationProvider;

public class AuthorizationProvider implements IAuthorizationProvider {

	@Override
	public void initialize(Properties properties) {

	}

	@Override
	public Collection<Role> authorize(Principal callerPrincipal) {
		List<Role> role = new ArrayList<Role>();
		role.add(new Role(Roles.ADMIN));
		return role;
	}

}
